package com.hdoit.ares.web.home.controllers;

import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

import com.tennetcn.component.web.BaseController;
import com.tennetcn.web.cbase.AuthPassport;

@Controller
@RequestMapping(value = "/we/")
@AuthPassport
public class WechatMainController extends BaseController {

	@Override
	public String getRoutePath() {
		return "areas/we/";
	}

	private final String indexViewName="index";
	private final String personCenterViewName="personCenter";
	private final String personDetailedViewName="personDetailed";
	private final String myCodeViewName="myCode";
	private final String claimViewName="claim";
	private final String insuranceClassifyName="insuranceClassify";
	private final String lifeInsuranceName="lifeInsurance";
	private final String carInsuranceName="carInsurance";
	private final String enterpriseInsuranceName="enterpriseInsurance";
	private final String productListName="productList";
	private final String serviceViewName="service"; 
	private final String myClaimViewName="myClaim";
	private final String applyForClaimViewName = "applyForClaim";
	private final String cloudSharingViewName = "cloudSharing";
	private final String informationDetailsViewName = "informationDetails";

	private final String moreInformationViewName = "moreInformation";
	private final String morevideoViewName = "morevideo";
	private final String videoDetailViewName = "videoDetail";
	private final String policyViewName = "policy";
	private final String myWealthViewName = "myWealth";
	private final String myOrderViewName = "myOrder";
	private final String registrationViewName = "registration";
	private final String forgetPasswordViewName = "forgetPassword";
	private final String registerNowViewName = "registerNow";
	private final String collectAndFootprintViewName ="collectAndFootprint";
	private final String feedbackViewName = "feedback";
	private final String rechargeViewName ="recharge";
	private final String withdrawViewName = "withdraw";
	private final String incomeDetailViewName = "incomeDetail";
	private final String balanceDetailsViewName = "balanceDetails";
	private final String chexianViewName = "chexian";
	
	private final String orderDetailViewName = "orderDetail";
	
	
	@RequestMapping(value = chexianViewName, method = { RequestMethod.GET,RequestMethod.POST })
	public String chexian(Model model){
		return view(chexianViewName);
	}

	@RequestMapping(value = indexViewName, method = { RequestMethod.GET,RequestMethod.POST })
	public String index(Model model){
		return view(indexViewName);
	}
	
	@RequestMapping(value = personCenterViewName, method = { RequestMethod.GET,RequestMethod.POST })
	public String personCenter(Model model,String code){
		return view(personCenterViewName);
	}
	
	@RequestMapping(value = personDetailedViewName, method = { RequestMethod.GET,RequestMethod.POST })
	public String personDetailed(Model model){
		return view(personDetailedViewName);
	}
	
	@RequestMapping(value = myCodeViewName, method = { RequestMethod.GET,RequestMethod.POST })
	public String myCode(Model model){
		return view(myCodeViewName);
	}
	
	@RequestMapping(value = claimViewName, method = { RequestMethod.GET,RequestMethod.POST })
	public String claim(Model model){
		return view(claimViewName);
	}
	
	@RequestMapping(value = insuranceClassifyName, method = { RequestMethod.GET,RequestMethod.POST })
	public String insuranceClassify(Model model){
		return view(insuranceClassifyName);
	}
	
	@RequestMapping(value = lifeInsuranceName, method = { RequestMethod.GET, RequestMethod.POST})
	public String lifeInsurance(Model model) {
		return view(lifeInsuranceName);
	}
	
	@RequestMapping(value = carInsuranceName, method = { RequestMethod.GET, RequestMethod.POST})
	public String carInsurance(Model model) {
		return view(carInsuranceName);
	}
	
	@RequestMapping(value = enterpriseInsuranceName, method = { RequestMethod.GET, RequestMethod.POST})
	public String enterpriseInsurance(Model model) {
		return view(enterpriseInsuranceName);
	}
	
	@RequestMapping(value = productListName, method = { RequestMethod.GET, RequestMethod.POST})
	public String productList(Model model) {
		return view(productListName);
	}
	
	@RequestMapping(value = serviceViewName,method = {RequestMethod.GET, RequestMethod.POST})
	public String service(Model model){
		return view(serviceViewName);
	}
	
	@RequestMapping(value = myClaimViewName, method = { RequestMethod.GET, RequestMethod.POST})
	public String claimDetail(Model model) {
		return view(myClaimViewName);
	}

	@RequestMapping(value = applyForClaimViewName, method = { RequestMethod.GET, RequestMethod.POST})
	public String applyForClaim(Model model) {
		return view(applyForClaimViewName);
	}
	
	@RequestMapping(value = cloudSharingViewName, method = { RequestMethod.GET, RequestMethod.POST})
	public String cloudSharing(Model model) {
		return view(cloudSharingViewName);
	}
	
	@RequestMapping(value = informationDetailsViewName, method = { RequestMethod.GET, RequestMethod.POST})
	public String informationDetails(Model model) {
		return view(informationDetailsViewName);
	}
	

	@RequestMapping(value = moreInformationViewName, method = { RequestMethod.GET, RequestMethod.POST})
	public String moreInformation(Model model) {
		return view(moreInformationViewName);
	}
	
	@RequestMapping(value = morevideoViewName, method = { RequestMethod.GET, RequestMethod.POST})
	public String morevideo(Model model) {
		return view(morevideoViewName);
	}
	

	@RequestMapping(value = policyViewName, method = { RequestMethod.GET, RequestMethod.POST})
	public String policy(Model model) {
		return view(policyViewName);
	}
	
	@RequestMapping(value = myWealthViewName, method = { RequestMethod.GET, RequestMethod.POST})
	public String myWealth(Model model) {
		return view(myWealthViewName);
	}
	
	@RequestMapping(value = myOrderViewName, method = { RequestMethod.GET, RequestMethod.POST})
	public String myOrder(Model model) {
		return view(myOrderViewName);
	}
	
	@RequestMapping(value = registrationViewName, method = { RequestMethod.GET, RequestMethod.POST})
	public String registration(Model model) {
		return view(registrationViewName);
	}
	

	@RequestMapping(value = videoDetailViewName, method = { RequestMethod.GET, RequestMethod.POST})
	public String videoDetail(Model model) {
		return view(videoDetailViewName);
	}
	
	@RequestMapping(value = forgetPasswordViewName, method = { RequestMethod.GET, RequestMethod.POST})
	public String forgetPassword(Model model) {
		return view(forgetPasswordViewName);
	}
	
	@RequestMapping(value = registerNowViewName, method = { RequestMethod.GET, RequestMethod.POST})
	public String registerNow(Model model) {
		return view(registerNowViewName);
	}
	
	@RequestMapping(value = collectAndFootprintViewName,method = { RequestMethod.GET, RequestMethod.POST})
	public String collectAndFootprint(Model model){
		return view(collectAndFootprintViewName);
	}
	
	@RequestMapping(value = feedbackViewName,method = { RequestMethod.GET, RequestMethod.POST})
	public String feedback(Model model){
		return view(feedbackViewName);	
	}
	
	@RequestMapping(value = rechargeViewName, method = { RequestMethod.GET,RequestMethod.POST })
	public String recharge(Model model){
		return view(rechargeViewName);
	}
	
	@RequestMapping(value = withdrawViewName, method = { RequestMethod.GET,RequestMethod.POST })
	public String withdraw(Model model){
		return view(withdrawViewName);
	}
	
	@RequestMapping(value = incomeDetailViewName, method = { RequestMethod.GET,RequestMethod.POST })
	public String incomeDetail(Model model){
		return view(incomeDetailViewName);
	}
	
	@RequestMapping(value = balanceDetailsViewName, method = { RequestMethod.GET,RequestMethod.POST })
	public String balanceDetails(Model model){
		return view(balanceDetailsViewName);
	}
	
	@RequestMapping(value = orderDetailViewName, method = { RequestMethod.GET,RequestMethod.POST })
	public String orderDetail(Model model){
		return view(orderDetailViewName);
	}
	
}
